<?php

class Form_UserLogin extends QForm
{
    function __construct($action)
    {
        // 调用父类的构造函数
        parent::__construct('form_userlogin', $action);

        // 从配置文件载入表单
//		$filename = 'C:\apmxe\htdocs\jj_supermarket\_code\app\form\userlogin_form.yaml';
        $filename = dirname(__FILE__) . '/userlogin_form.yaml';
        $this->loadFromConfig(Helper_YAML::loadCached($filename));
        $this->addValidations(user::meta());
    }
}
